<link rel="stylesheet" type="text/css" href="css/login.css" />

<div id="content">
<?php 
if (session_status() == PHP_SESSION_NONE) {
	session_start();
}
	if(isset($_SESSION['manager'])){
		echo "You are already logged in. <a href='?page=selectteam'>Look at your squad</a>.";
	}
	else{
?>
<form action='?page=<?php echo $page; ?>' method='post'>
	<br /><p id="toRegister">Please enter your details below:</p><br />
	<table id='loginTable'>
		
		<tr>
			<td id='label'>E-mail:</td>
			<td ><input type='text' name='email' id='email' placeholder='e-mail..'></td>
			<td rowspan='2'><input type='submit' name='login' id='login' value='Login' ></td></tr>
		<tr>
			<td id='label'>Password: &nbsp;</td>
			<td ><input type='password' name='password' id='password' placeholder='password..'></td>
			<?php
				include '../Controller/LoginController.php';
			?>
		</tr>
	</table>
</form>
<br /><p id="toRegister"><a href="?page=Register" >Not yet registered? Sign up here!</a></p>
<br />

<?php } ?>
</div>